package com.jun.serviceimpl;

import com.jun.entity.Operation;
import com.jun.mapper.OperationMapper;
import com.jun.service.OperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

@Service
@Transactional
public class OperationServiceImpl implements OperationService {
    @Autowired
    OperationMapper operationMapper;
    @Override
    public ArrayList<Operation> getAllOperation() {
        return operationMapper.getAllOperation();
    }

    @Override
    public int insertOperation(Operation operation) {
        return operationMapper.insertOperation(operation);
    }
}
